package org.dromara.system.openApi.domain.vo;

import org.dromara.system.openApi.domain.OpenApiClient;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;



/**
 * openApiClient视图对象 open_api_client
 *
 * @author wdm
 * @date 2024-03-13
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = OpenApiClient.class)
public class OpenApiClientVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @ExcelProperty(value = "主键id")
    private Long id;

    /**
     * 客户端id
     */
    @ExcelProperty(value = "客户端id")
    private String clientId;

    /**
     * 客户端密钥
     */
    @ExcelProperty(value = "客户端密钥")
    private String clientSecret;

    /**
     * 客户端名称
     */
    @ExcelProperty(value = "客户端名称")
    private String clientName;

    /**
     * 是否是内部应用(1:是 0：否)
     */
    @ExcelProperty(value = "是否是内部应用(1:是 0：否)", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "open_api_is_inner")
    private Boolean isInner;

    /**
     * 状态(1:正常 0：已停用)
     */
    @ExcelProperty(value = "状态(1:正常 0：已停用)", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "open_api_client_status")
    private Long status;

    /**
     * 是否加密数据(1:是 0:否)
     */
    @ExcelProperty(value = "是否加密数据(1:是 0:否)", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "open_api_require_encrypt")
    private Boolean requireEncrypt;

    /**
     * 是否验签(1:是 0:否)
     */
    @ExcelProperty(value = "是否验签(1:是 0:否)", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "open_api_check_sign")
    private Boolean checkSign;

    /**
     * 允许的最大时间差，单位分钟(0表示不验证）
     */
    @ExcelProperty(value = "允许的最大时间差，单位分钟(0表示不验证）")
    private Integer diffCurTime;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;


}
